package com.boil.qz.safekavass.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by ChenYong on 2017-04-12.
 * <br>
 * 题目实体类。
 */
@Entity
@Table(name = "TB_QUESTIONS")
public class Question extends BaseEntity {
    /**
     * 序列化
     */
    private static final long serialVersionUID = -3682669980974683066L;
    /**
     * 学习内容
     */
    private String description;
    /**
     * 题目标题
     */
    private String subjectTitle;
    /**
     * 行业代码
     */
    private String industryCode;
    /**
     * A 答案
     */
    @Column(name = "ANSWER_A")
    private String answerA;
    /**
     * B 答案
     */
    @Column(name = "ANSWER_B")
    private String answerB;
    /**
     * C 答案
     */
    @Column(name = "ANSWER_C")
    private String answerC;
    /**
     * D 答案
     */
    @Column(name = "ANSWER_D")
    private String answerD;
    /**
     * 正确答案
     */
    private String rightAns;
    /**
     * 是否多选：0-单选；1-多选
     */
    private String isDouble;
    /**
     * 创建时间
     */
    private String createTime;

    /**
     * 默认构造器。
     */
    public Question() {
        super();
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getSubjectTitle() {
        return subjectTitle;
    }

    public void setSubjectTitle(String subjectTitle) {
        this.subjectTitle = subjectTitle;
    }

    public String getIndustryCode() {
        return industryCode;
    }

    public void setIndustryCode(String industryCode) {
        this.industryCode = industryCode;
    }

    public String getAnswerA() {
        return answerA;
    }

    public void setAnswerA(String answerA) {
        this.answerA = answerA;
    }

    public String getAnswerB() {
        return answerB;
    }

    public void setAnswerB(String answerB) {
        this.answerB = answerB;
    }

    public String getAnswerC() {
        return answerC;
    }

    public void setAnswerC(String answerC) {
        this.answerC = answerC;
    }

    public String getAnswerD() {
        return answerD;
    }

    public void setAnswerD(String answerD) {
        this.answerD = answerD;
    }

    public String getRightAns() {
        return rightAns;
    }

    public void setRightAns(String rightAns) {
        this.rightAns = rightAns;
    }

    public String getIsDouble() {
        return isDouble;
    }

    public void setIsDouble(String isDouble) {
        this.isDouble = isDouble;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("Question{");
        sb.append("description='").append(description).append('\'');
        sb.append(", subjectTitle='").append(subjectTitle).append('\'');
        sb.append(", industryCode='").append(industryCode).append('\'');
        sb.append(", id=").append(id);
        sb.append(", answerA='").append(answerA).append('\'');
        sb.append(", answerB='").append(answerB).append('\'');
        sb.append(", answerC='").append(answerC).append('\'');
        sb.append(", answerD='").append(answerD).append('\'');
        sb.append(", rightAns='").append(rightAns).append('\'');
        sb.append(", isDouble='").append(isDouble).append('\'');
        sb.append(", createTime='").append(createTime).append('\'');
        sb.append('}');
        return sb.toString();
    }
}